<template>
  <div class="main">
    <LunBo class="contain"></LunBo>
    <Zixun></Zixun>
    <General></General>
    <TongRen></TongRen>
    <GongLue></GongLue>
  </div>
</template>
<script>
import Logo from "../demo/logo";
import LunBo from "./lunbo-home1/contain";
import Zixun from "./zixun-home2/contain";
import General from "./general-home3/contain";
import TongRen from "./tongren-home4/contain";
import GongLue from "./gonglue-home5/contain";

export default {
  components: { Logo, LunBo, Zixun, General, TongRen, GongLue },
  mounted() {
    let back = document.getElementsByClassName("warp")[0];
    let backgroundImage = require("../../assets/image/back-home.jpg");
    back.style.backgroundImage = "url(" + backgroundImage + ")";

    var xmlhttp;
    xmlhttp = new XMLHttpRequest();
    xmlhttp.open("GET", "../demo/test.txt", true);
    xmlhttp.send();
    console.log(xmlhttp.responseXML);
  }
};
</script>